package com.leslie.hhcommunity.service;

import com.leslie.hhcommunity.entity.Comment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author
 * @PackageName:com.leslie.hhcommunity.service
 * @ClassnName:CommentService
 * @Description:
 * @Date 2022/1/4  12:06
 */
public interface CommentService {

	List<Comment> selectCommentsByEntity(@Param("entityType") int entityType, @Param("entityId")int entityId,
										 @Param("offset")int offset, @Param("limit")int limit);


	int selectCountByEntity(@Param("entityType") int entityType, @Param("entityId") int entityId);

	int insertComment (Comment comment);

	Comment selectCommentsById(int entityId);
}
